package com.gxd.service.impl;

import com.gxd.dao.AdminDao;
import com.gxd.dao.impl.AdminDaoImpl;
import com.gxd.domain.User;
import com.gxd.service.AdminService;

import java.util.List;

public class AdminServiceImpl implements AdminService {
    AdminDao adminDao = new AdminDaoImpl();
    @Override
    public User findByUAndP(String username, String password) {
        return adminDao.findByUAndP(username,password);
    }

    @Override
    public List<User> findByUid() {
        return adminDao.findByUid();
    }

    @Override
    public List<User> findByinvalid() {
        return adminDao.findByinvalid();
    }

    @Override
    public List<User> findByMore(String where, List<Object> params) {
        return adminDao.findByMore(where,params);
    }

    @Override
    public void deleteUser(int id) {
        adminDao.deleteUser(id);
    }
}
